///	@file Ex.cpp
#include "Ex.h"
#include "Number.h"
#include "ComparerIx.h"
#include <algorithm>
namespace sympycpp {
void Ex::spaces(const int i, std::ostringstream & stream) const {
	for (int j = 0; j < i; ++j) {
		if (!(j + 1 ==  i))
			stream << "   ";
		else 
			stream << "|---";
	}
}
Number Ex::Multiplicity() const {
	return sign_ ? 1 : -1;
}
void containerSort(std::list<Ex *> & l, bool (* pf)(const Ex *, const Ex *)) {
	l.sort(pf);
}
void containerSort(std::vector<Ex *> & v, bool (* pf)(const Ex *, const Ex *)) {
	sort(v.begin(), v.end(), pf);
}
}
